/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package towerdefence.model.color;

import java.awt.Color;
import java.util.Random;

/**
 *
 * @author Gussoh
 */
public abstract class ColorCreator {

    protected long originalSeed;
    protected Random random;
    
    public ColorCreator(long seed) {
        this.originalSeed = seed;
        random = new Random(seed);
        construct();
    }

    protected abstract void construct();
    
    public ColorCreator() {
        this((int) (Math.random() * Integer.MAX_VALUE));
    }

    public long getOriginalSeed() {
        return originalSeed;
    }

    public abstract Color getNextColor();
}
